#ifndef SCRIPTEDITOR_H
#define SCRIPTEDITOR_H

#include <QWidget>

class QTextEdit;
class Highlighter;
class CodeEdit;

class ScriptEditorWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ScriptEditorWidget(QWidget *parent = 0);
    ~ScriptEditorWidget();
    void setScriptText(const QString &scriptText);
    QString scriptText() const;
    void appendFunction(const QString &funcName, const QStringList &params);

protected:

private:
    CodeEdit *editor;

    friend class ScriptEditorDialog;
};

#endif // SCRIPTEDITOR_H
